﻿<%@ Control Language="C#"  %>
<%
    Cs2102BookingSystem.Models.UserModel user = (Cs2102BookingSystem.Models.UserModel)HttpContext.Current.Session["User"];
    if (user != null && user.Email != "")
    {
%>
        Welcome <b><%: Html.ActionLink(user.Email, "Edit", "Account") %></b>!&nbsp
        [ <%: Html.ActionLink("Edit Account", "Edit", "Account") %> ] | 
        [ <%: Html.ActionLink("Log Off", "LogOff", "Account") %> ]
<%
    }
    else {
%> 
        [ <%: Html.ActionLink("Register Now !", "Register", "Account") %> ]
        [ <%: Html.ActionLink("Log On", "LogOn", "Account") %> ]
<%
    }
%>
